package com.spring.aop.custom;

import org.junit.Test;

/**
 * @ClassName ProxyTest
 * @Description 自定义aop底层实现
 * @Author suncx
 * @Date 2020/8/19 15:02
 * @Version 1.0
 */
public class ProxyTest {
    @Test
    public void test() {
        UserService userService = new UserServiceImpl();
        MyinvocationHandler myinvocationHandler = new MyinvocationHandler(userService);
        UserService proxy =  (UserService)myinvocationHandler.getProxy();
        proxy.add();
    }
}
